#include <iostream>
using namespace std;

int main() {
    int x = -10;  // 1010
    int y = 3;   // 11

    int result1 = x & y;
    int result2 = x | y;
    int result3 = x ^ y;
    int result4 = ~x;

    cout << "result1 = " << result1 << endl;
    cout << "result2 = " << result2 << endl;
    cout << "result3 = " << result3 << endl;
    cout << "result4 = " << result4 << endl;

    return 0;
}